package com.jwater.launch;

/**
 * @description: 启动入口类
 * @author: jnner
 * @createDate: 2021/2/5
 * @version: 1.0
 */
public class Jwater {

    public static void main(String[] args) {
        String className = args[0];
        String[] newArgs = new String[args.length - 1];
        for (int i = 1; i < args.length; i++) {
            newArgs[i - 1] = args[i];
        }
        if (JwaterLauncher.CONSOLE_CLASS_NAME.equals(className)) {
            JwaterLauncher.launcherConsole(className, newArgs);
        } else {
            JwaterLauncher.launcher(className, newArgs);
        }
    }

}
